class CreateOrders < ActiveRecord::Migration
  def change
    create_table :orders do |t|
      t.references :merchant
      t.references :user
      t.string :order_status
      t.float :amount
      t.float :tax
      t.float :shipping
      t.string :shipping_type
      t.float :total_amount

      t.timestamps
    end
    add_index :orders, :merchant_id
    add_index :orders, :user_id
  end
end
